<div class="llselect-pos">
    <div name="Select-TaskType" class="task-option">
        <select class="styled" onchange="ctype(this,{$pid})">
            <option value="0">任务类型</option>
            <option value="0">全部</option>
            <option value="1">撰写方案</option>
            <option value="2">检查评估</option>
            <option value="3">工程整改</option>
            <option value="4">编制报告</option>
            <option value="5">审批</option>
            <option value="6">核实</option>
            <option value="7">会议</option>
            <option value="8">其他</option>
        </select>
    </div> 
</div> 
<div class="adv-table lltable">
    <table  class="display table table-bordered table-striped" id="pTaskTable-1">
    	<tbody>
            <foreach name="task" item="v5" key="k5">
                <tr>
                    <th><a href="{:U('Project/task',array('tid'=>$v5['tid'],'pid'=>$v5['pid']))}">{$v5.name}</a></th>
                    <th>{$user[$v5['assign']]}</th>
                    <th>{$v5.cfrom}</th>
                    <th>{$task_status['type'][$v5['type']]}</th>
                    <?php $time = strtotime($v5['t_stop']);
                    		$time1 = time();
                    ?>
                      <if condition="$time1 gt $time && $v5['status'] neq 4">
                   	 <th><span style="color:red;">任务已超时</span></th>
                    <else/>
                    	 <th>{$task_status['status'][$v5['status']]}</th>
                    </if>
                    <th>{$task_status['priority'][$v5['priority']]}</th>
                    <th>{$task_status['severity'][$v5['severity']]}</th>
                    <th>{$v5.add_time|date='Y-m-d H:i:s',###}</th>
                    <th>{$v5.t_stop}</th>
                </tr>
            </foreach>
        </tbody>
    </table>
</div>
<script src="__PUBLIC__/js/dynamic_table_init.js"></script>
<script type="text/javascript" src="__PUBLIC__/assets/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
<script type="text/javascript" src="__PUBLIC__/assets/bootstrap-datetimepicker/js/bootstrap-datetimepicker.js"></script>
<script type="text/javascript" src="__PUBLIC__/assets/bootstrap-colorpicker/js/bootstrap-colorpicker.js"></script>
<script type="text/javascript" src="__PUBLIC__/assets/bootstrap-timepicker/js/bootstrap-timepicker.js"></script>
<script type="text/javascript" src="__PUBLIC__/assets/jquery-multi-select/js/jquery.multi-select.js"></script>
<script type="text/javascript" src="__PUBLIC__/assets/jquery-multi-select/js/jquery.quicksearch.js"></script>
<script src="__PUBLIC__/js/advanced-form-components.js"></script>
<script src="__PUBLIC__/js/form-component.js"></script>